//
//  CoreDataManager.h
//  CoreData0508
//
//  Created by dllo on 16/8/9.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <CoreData/CoreData.h>

#define kCoreData_Name @"CoreData0508"


@interface CoreDataManager : NSObject

// 创建manager单例
+(CoreDataManager *)shareCoreDataManager;

// 数据管理器类
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;

// 数据模型器类
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;

// 数据链接器类
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;


// 保存数据
- (void)saveContext;

// 获取沙盒路径
- (NSURL *)applicationDocumentsDirectory;




@end
